package com.envper.common.mapper;

import com.envper.common.domain.dto.ClassDto;
import com.envper.common.domain.dto.ClassMemberDto;
import com.envper.mysql.domain.entity.TClass;
import com.envper.mysql.domain.entity.TClassMember;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ClassMapper {

    ClassMapper INSTANCE = Mappers.getMapper(ClassMapper.class);

    ClassDto toClassDto(TClass tClass);

    TClass toTClass(ClassDto classDto);

    List<ClassDto> toClassDtoList(List<TClass> tClassList);

    ClassMemberDto toClassMemberDto(TClassMember tClassMember);

    TClassMember toTClassMember(ClassDto classDto);

    List<TClassMember> toTClassMember(List<ClassDto> classDtoList);

    List<ClassMemberDto> toClassMemberDtoList(List<TClassMember> tClassMemberList);
}
